package com.marktotop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.marktotop.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.marktotop.response.ResultBean;
import org.springframework.context.annotation.Bean;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author marktotop
 * @since 2021-05-23
 */
public interface IEmployeeService extends IService<Employee> {

    /**
     * 获取所员工(分页)
     * @param currentPage
     * @param size
     * @param employee
     * @param beginDateScope
     * @return
     */
    ResultBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    /**
     * 获取所有数据
     * @param id
     */
    List<Employee> getEmployee(Integer id);


    /**
     * 获取工号
     * @return
     */
    String maxWorkID();


    /**
     * 添加员工
     * @param employee
     * @return
     */
    ResultBean addEmp(Employee employee);

    /**
     *获取所有员工工资账套
     *
     * @param currentPage
     * @param size
     * @return
     */
    ResultBean getEmployeeSalary(Integer currentPage, Integer size);
}
